<template>
  <div style="width: 100%;">
    <ElInput :="$attrs" style="width: 100%;" />
    <div>
      <ElButton link type="primary" @click="onZero">全部填0</ElButton>
    </div>
  </div>
</template>

<script setup lang="ts">
interface Props {
  data: any;
}
const props = withDefaults(defineProps<Props>(), {
  data: () =>({}),
})

const onZero = () => {
  console.log(props.data)
  props.data.salesRevenue = '0'
  props.data.receptionVolume = '0'
  props.data.conversionRate = '0'
  props.data.responseTime = '0'
  props.data.qaratio = '0'
  props.data.responseRate = '0'
}
</script>
